﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace FanaticRock.MediaSource.BilibiliAPI.RequestVo.WebInterface
{
    public class ViewRequestVo
    {
        [JsonPropertyName("aid")]
        public long Aid { get; set; }

        [JsonPropertyName("bvid")]
        public string Bvid { get; set; }

        private ViewRequestVo()
        {

        }

        public static ViewRequestVo CreateFromAid(long aid)
        {
            return new ViewRequestVo()
            {
                Aid = aid,
            };
        }

        public static ViewRequestVo CreateFromBvid(string bvid)
        {
            return new ViewRequestVo()
            {
                Bvid = bvid,
            };
        }

    }
}
